package com.wwdx.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author liguoliang
 */
@Entity
@Table(name="wwdx_banner")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties({"bannerid","status","sort","gmtCreated","gmtModified"})
public class WwdxBannerModel implements Serializable {

    @Id
    @GeneratedValue
    private Long bannerid;
    private Long id;
    private String theme;
    private String img;
    private String bannertype;
    /**
     * 状态 0 可用 1 不可用
     */
    private Integer status;
    private Integer sort;
    @Column(name = "gmt_created", updatable = false)
    private Date gmtCreated;
    @Column(name = "gmt_modified", updatable = false)
    private Date gmtModified;
    @Transient
    private Long videoauthorid;
    @Transient
    private Long copywriter;
}